if ('undefined' !== typeof jQuery && null != jQuery) {
  jQuery.fn.extend({
    sfsipluscss: function (styleName, value) {
      this[0].style.setProperty(styleName, value, 'important');
    },
    sfsi_plus_align_icons_center_orientation: function (_centerPosition) {
      function applyOrientation() {
        var elemF = jQuery('#sfsi_plus_floater');
        if (elemF.length > 0) {
          switch (_centerPosition) {
            case 'center-right': case 'center-left':
              var toptalign = (jQuery(window).height() - elemF.height()) / 2;
              elemF.css('top', toptalign);
              break;
            case 'center-top': case 'center-bottom':
              var leftalign = (jQuery(window).width() - elemF.width()) / 2;
              elemF.css('left', leftalign);
              break;
          }
        }
      }
      var prev_onresize = window.onresize;
      window.onresize = function (event) {
        if ('function' === typeof prev_onload) {
          prev_onresize(), applyOrientation();
        }
        else {
          applyOrientation();
        }
      }
    }
  });
  jQuery("#sfsi_plus_wDivothrWid").find("p:empty").remove();
  /*! flip - v1.1.2 - 2016-10-20
  * https://github.com/nnattawat/flip
  * Copyright (c) 2016 Nattawat Nonsung; Licensed MIT */
  !function (a) { var b = function () { var a, b = document.createElement("fakeelement"), c = { transition: "transitionend", OTransition: "oTransitionEnd", MozTransition: "transitionend", WebkitTransition: "webkitTransitionEnd" }; for (a in c) if (void 0 !== b.style[a]) return c[a] }, c = function (b, c, d) { this.setting = { axis: "y", reverse: !1, trigger: "click", speed: 500, forceHeight: !1, forceWidth: !1, autoSize: !0, front: ".front", back: ".back" }, this.setting = a.extend(this.setting, c), "string" != typeof c.axis || "x" !== c.axis.toLowerCase() && "y" !== c.axis.toLowerCase() || (this.setting.axis = c.axis.toLowerCase()), "boolean" == typeof c.reverse && (this.setting.reverse = c.reverse), "string" == typeof c.trigger && (this.setting.trigger = c.trigger.toLowerCase()); var e = parseInt(c.speed); isNaN(e) || (this.setting.speed = e), "boolean" == typeof c.forceHeight && (this.setting.forceHeight = c.forceHeight), "boolean" == typeof c.forceWidth && (this.setting.forceWidth = c.forceWidth), "boolean" == typeof c.autoSize && (this.setting.autoSize = c.autoSize), ("string" == typeof c.front || c.front instanceof a) && (this.setting.front = c.front), ("string" == typeof c.back || c.back instanceof a) && (this.setting.back = c.back), this.element = b, this.frontElement = this.getFrontElement(), this.backElement = this.getBackElement(), this.isFlipped = !1, this.init(d) }; a.extend(c.prototype, { flipDone: function (a) { var c = this; c.element.one(b(), function () { c.element.trigger("flip:done"), "function" == typeof a && a.call(c.element) }) }, flip: function (a) { if (!this.isFlipped) { this.isFlipped = !0; var b = "rotate" + this.setting.axis; this.frontElement.css({ transform: b + (this.setting.reverse ? "(-180deg)" : "(180deg)"), "z-index": "0" }), this.backElement.css({ transform: b + "(0deg)", "z-index": "1" }), this.flipDone(a) } }, unflip: function (a) { if (this.isFlipped) { this.isFlipped = !1; var b = "rotate" + this.setting.axis; this.frontElement.css({ transform: b + "(0deg)", "z-index": "1" }), this.backElement.css({ transform: b + (this.setting.reverse ? "(180deg)" : "(-180deg)"), "z-index": "0" }), this.flipDone(a) } }, getFrontElement: function () { return this.setting.front instanceof a ? this.setting.front : this.element.find(this.setting.front) }, getBackElement: function () { return this.setting.back instanceof a ? this.setting.back : this.element.find(this.setting.back) }, init: function (a) { var b = this, c = b.frontElement.add(b.backElement), d = "rotate" + b.setting.axis, e = 2 * b.element["outer" + ("rotatex" === d ? "Height" : "Width")](), f = { perspective: e, position: "relative" }, g = { transform: d + "(" + (b.setting.reverse ? "180deg" : "-180deg") + ")", "z-index": "0", position: "relative" }, h = { "backface-visibility": "hidden", "transform-style": "preserve-3d", position: "absolute", "z-index": "1" }; b.setting.forceHeight ? c.outerHeight(b.element.height()) : b.setting.autoSize && (h.height = "100%"), b.setting.forceWidth ? c.outerWidth(b.element.width()) : b.setting.autoSize && (h.width = "100%"), (window.chrome || window.Intl && Intl.v8BreakIterator) && "CSS" in window && (f["-webkit-transform-style"] = "preserve-3d"), c.css(h).find("*").css({ "backface-visibility": "hidden" }), b.element.css(f), b.backElement.css(g), setTimeout(function () { var d = b.setting.speed / 1e3 || .5; c.css({ transition: "all " + d + "s ease-out" }), "function" == typeof a && a.call(b.element) }, 20), b.attachEvents() }, clickHandler: function (b) { b || (b = window.event), this.element.find(a(b.target).closest('button, a, input[type="submit"]')).length || (this.isFlipped ? this.unflip() : this.flip()) }, hoverHandler: function () { var b = this; b.element.off("mouseleave.flip"), b.flip(), setTimeout(function () { b.element.on("mouseleave.flip", a.proxy(b.unflip, b)), b.element.is(":hover") || b.unflip() }, b.setting.speed + 150) }, attachEvents: function () { var b = this; "click" === b.setting.trigger ? b.element.on(a.fn.tap ? "tap.flip" : "click.flip", a.proxy(b.clickHandler, b)) : "hover" === b.setting.trigger && (b.element.on("mouseenter.flip", a.proxy(b.hoverHandler, b)), b.element.on("mouseleave.flip", a.proxy(b.unflip, b))) }, flipChanged: function (a) { this.element.trigger("flip:change"), "function" == typeof a && a.call(this.element) }, changeSettings: function (a, b) { var c = this, d = !1; if (void 0 !== a.axis && c.setting.axis !== a.axis.toLowerCase() && (c.setting.axis = a.axis.toLowerCase(), d = !0), void 0 !== a.reverse && c.setting.reverse !== a.reverse && (c.setting.reverse = a.reverse, d = !0), d) { var e = c.frontElement.add(c.backElement), f = e.css(["transition-property", "transition-timing-function", "transition-duration", "transition-delay"]); e.css({ transition: "none" }); var g = "rotate" + c.setting.axis; c.isFlipped ? c.frontElement.css({ transform: g + (c.setting.reverse ? "(-180deg)" : "(180deg)"), "z-index": "0" }) : c.backElement.css({ transform: g + (c.setting.reverse ? "(180deg)" : "(-180deg)"), "z-index": "0" }), setTimeout(function () { e.css(f), c.flipChanged(b) }, 0) } else c.flipChanged(b) } }), a.fn.flip = function (b, d) { return "function" == typeof b && (d = b), "string" == typeof b || "boolean" == typeof b ? this.each(function () { var c = a(this).data("flip-model"); "toggle" === b && (b = !c.isFlipped), b ? c.flip(d) : c.unflip(d) }) : this.each(function () { if (a(this).data("flip-model")) { var e = a(this).data("flip-model"); !b || void 0 === b.axis && void 0 === b.reverse || e.changeSettings(b, d) } else a(this).data("flip-model", new c(a(this), b || {}, d)) }), this } }(jQuery);
  var SFSI = jQuery.noConflict();
}
jQuery(document).ready(function (e) {
  jQuery("#sfsi_plus_floater").attr("data-top", jQuery(document).height());
  // Whatsapp sharing
  jQuery('.clWhatsapp').each(function () {
    // Get title to be shared
    var title = encodeURIComponent(jQuery(this).attr('data-text'));
    // Get link to be shared    
    var link = encodeURIComponent(jQuery(this).attr('data-url'));
    // Get custom whatsappmessage to be shared entered by user
    var customtxt = jQuery(this).attr('data-customtxt');
    var customtxt = customtxt.replace("${title}", title);
    var customtxt = customtxt.replace("${link}", link);
    var customtxt = customtxt.replace(/['"]+/g, '');// Remove single & double quotes
    var whats_app_message = title + " - " + link;
    var whatsapp_url = "..\\..\\..\\..\\https\\api.whatsapp.com\\MS_2906.html" + customtxt;
    jQuery(this).attr('href', whatsapp_url);
  });
});
function sfsiplus_showErrorSuc(s, i, e) {
  if ("error" == s) var t = "errorMsg";
  else var t = "sucMsg";
  return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(), SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
    SFSI("." + t).slideUp("slow")
  }, 5e3), !1
}
function sfsiplus_beForeLoad() {
  SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none")
}
function sfsi_plus_make_popBox() {
  var s = 0;
  SFSI(".plus_sfsi_sample_icons >li").each(function () {
    "none" != SFSI(this).css("display") && (s = 1)
  }), 0 == s ? SFSI(".sfsi_plus_Popinner").hide() : SFSI(".sfsi_plus_Popinner").show(), "" != SFSI('input[name="sfsi_plus_popup_text"]').val() ? (SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()), SFSI(".sfsi_plus_Popinner >h2").show()) : SFSI(".sfsi_plus_Popinner >h2").hide(), SFSI(".sfsi_plus_Popinner").css({
    "border-color": SFSI('input[name="sfsi_plus_popup_border_color"]').val(),
    "border-width": SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(),
    "border-style": "solid"
  }), SFSI(".sfsi_plus_Popinner").css("background-color", SFSI('input[name="sfsi_plus_popup_background_color"]').val()), SFSI(".sfsi_plus_Popinner h2").css("font-family", SFSI("#sfsi_plus_popup_font").val()), SFSI(".sfsi_plus_Popinner h2").css("font-style", SFSI("#sfsi_plus_popup_fontStyle").val()), SFSI(".sfsi_plus_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())), SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"), "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_plus_Popinner").css("box-shadow", "none")
}
function sfsi_plus_stick_widget(s) {
  0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
    sfsiplus_initTop[s] = SFSI(this).position().top
  }), console.log(sfsiplus_initTop));
  var i = SFSI(window).scrollTop(),
    e = [],
    t = [];
  SFSI(".sfsi_plus_widget").each(function (s) {
    e[s] = SFSI(this).position().top, t[s] = SFSI(this)
  });
  var n = !1;
  for (var o in e) {
    var a = parseInt(o) + 1;
    e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
      position: "fixed",
      top: s
    }), SFSI(t[a]).css({
      position: "",
      top: sfsiplus_initTop[a]
    }), n = !0) : SFSI(t[o]).css({
      position: "",
      top: sfsiplus_initTop[o]
    })
  }
  if (!n) {
    var r = e.length - 1,
      c = -1;
    e.length > 1 && (c = e.length - 2), sfsiplus_initTop[r] < i ? (SFSI(t[r]).css({
      position: "fixed",
      top: s
    }), c >= 0 && SFSI(t[c]).css({
      position: "",
      top: sfsiplus_initTop[c]
    })) : (SFSI(t[r]).css({
      position: "",
      top: sfsiplus_initTop[r]
    }), c >= 0 && e[c] < i)
  }
}
function sfsi_plus_float_widget(s) {
  function iplus() {
    rplus = "Microsoft Internet Explorer" === navigator.appName ? aplus - document.documentElement.scrollTop : aplus - window.pageYOffset, Math.abs(rplus) > 0 ? (window.removeEventListener("scroll", iplus), aplus -= rplus * oplus, SFSI("#sfsi_plus_floater").css({
      top: (aplus + t).toString() + "px"
    }), setTimeout(iplus, n)) : window.addEventListener("scroll", iplus, !1)
  }
  SFSI(window).scroll(function () {
    var documentheight = SFSI(document).height();
    var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height());
    var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top"));
    if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
      window.addEventListener("scroll", iplus, !1)
    } else {
      window.removeEventListener("scroll", iplus);
      SFSI("#sfsi_plus_floater").css("top", documentheight + "px")
    }
  });
  if ("center" == s) {
    var t = (jQuery(window).height() - SFSI("#sfsi_plus_floater").height()) / 2
  } else if ("bottom" == s) {
    var t = jQuery(window).height() - (SFSI("#sfsi_plus_floater").height() + parseInt(SFSI('#sfsi_plus_floater').css('margin-bottom')));
  } else {
    var t = parseInt(s)
  }
  var n = 50,
    oplus = .1,
    aplus = 0,
    rplus = 0
}
function sfsi_plus_shuffle() {
    var s = [];
    SFSI(".sfsi_plus_wicons ").each(function(i) {
        SFSI(this).text().match(/^\s*$/) || (s[i] = "
" + SFSI(this).html() + "
", SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".sfsi_plus_wicons")), SFSI(this).fadeIn("slow"))
    }), s = sfsiplus_Shuffle(s), $("#sfsi_plus_wDiv").html("");
    for (var i = 0; i < testArray.length; i++) $("#sfsi_plus_wDiv").append(s[i]);
}
function sfsi_plus_shuffle_new() {
    var $= window.jQuery;
    
    return SFSI('.sfsi_plus_wDiv').each(function(index,container){
      var s = [];
      console.log(container);
      s= SFSI(container).find(".sfsi_plus_wicons ");
      // SFSI(container).find(".sfsi_plus_wicons ").each(function(i) {
      //     console.log(SFSI(this).text().match(/^\s*$/) || (s[i] = "" + SFSI(this).html() + "
", SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".sfsi_plus_wicons")), SFSI(this).fadeIn("slow")))
      // });
      s = sfsiplus_Shuffle(s);
      console.log(s);
      SFSI(container).html("");
      for (var i = 0; i < s.length; i++){
        console.log(s[i]);
        SFSI(s[i]).css('transform','none');
        SFSI(s[i]).css('position','relative');
        SFSI(container).append(s[i]);  
      }
    })
    
}
function sfsiplus_Shuffle(s) {
  for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
  return s
}
function sfsi_plus_setCookie(name, value, time) {
  var date = new Date();
  date.setTime(date.getTime() + (time * 1000));
  var expires = "; expires=" + date.toGMTString();
  document.cookie = name + "=" + value + expires + "; path=..\\..\\..\\..\\index.html"
}
function sfsi_plus_getCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for (var i = 0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0) == ' ') c = c.substring(1, c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length)
  }
  return null
}
function sfsi_plus_eraseCookie(name) {
  sfsi_plus_setCookie(name, "", -1)
}
function sfsi_plus_hideFooter() { }
window.onerror = function () { }, SFSI = jQuery, SFSI(window).on('load', function () {
  SFSI("#sfpluspageLoad").fadeOut(2e3)
});
var global_error = 0;
SFSI(document).ready(function (s) {
  SFSI("body").on("click", ".mailchimpSubscription", function () {
    SFSI.ajax({
      url: ajax_object.ajax_url,
      type: "post",
      data: {
        action: "mailchimpSubscription"
      },
      async: !0,
      dataType: "json",
      success: function (s) {
        alert(s)
      }
    })
  });
  SFSI("head").append(''), SFSI("head").append(''), SFSI("head").append(''), SFSI(document).click(function (s) {
    var i = SFSI(".sfsi_plus_FrntInner_changedmonad"),
      e = SFSI(".sfsi_plus_wDiv"),
      t = SFSI("#at15s");
    i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut()
  }), SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function () {
    var s = SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top + 10;
    SFSI("#at15s").css({
      top: s + "px",
      left: SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left + "px"
    })
    // }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
    // SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg")
    // }), SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
    // SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg")
  }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
    SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg")
  }), SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
    SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg")
  }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
    SFSI(this).css("opacity", "0.9")
  }), SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
    SFSI(this).css("opacity", "1")
  }), SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
    SFSI(this).css("opacity", "0.9")
  }), SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
    SFSI(this).css("opacity", "1")
  }), SFSI(".pop-up").on("click", function () {
    ("fbex-s2" == SFSI(this).attr("data-id") || "googlex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(), SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), SFSI("." + SFSI(this).attr("data-id")).show("slow")
  }), SFSI(document).on("click", '#close_popup', function () {
    SFSI(".read-overlay").hide("slow")
  });
  var e = 0;
  sfsi_plus_make_popBox(), SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup", sfsi_plus_make_popBox), SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus", sfsi_plus_make_popBox), SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change", sfsi_plus_make_popBox), SFSI(document).on("click", '.radio', function () {
    var s = SFSI(this).parent().find("input:radio:first");
    "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox()
  }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click","img.sfsi_wicon" ,function (s) {
    if (!SFSI(this).hasClass('sfsi_premium_pinterest_icon')) {
      s.stopPropagation();
    }
    var i = SFSI("#sfsi_plus_floater_sec").val();
    SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"), SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
      "z-index": "999"
    }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "fade_out" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: '0.6',
      "z-index": 10
    }), SFSI(this).parent().css("opacity", "0.6")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    })), SFSI(this).attr("data-effect") && "combo-fade-out-scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "0.6"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 0.6,
      "z-index": 10
    })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 1e3
    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show())
  }) : SFSI(document).on("mouseenter","img.sfsi_wicon", function () {
    var s = SFSI("#sfsi_plus_floater_sec").val();
    SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"), SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
      "z-index": "999"
    }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "fade_out" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: "0.6",
      "z-index": 10
    }), SFSI(this).parent().css("opacity", "0.6")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    })), SFSI(this).attr("data-effect") && "combo-fade-out-scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "0.6"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: "0.6",
      "z-index": 10
    })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
      opacity: 1,
      "z-index": 10
    }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show())
  }), SFSI("div.sfsi_plus_wicons").on("mouseleave", function () {
    SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"),
      SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "fade_out" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "1"),
      SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"),
      SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"),
        SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale")
      ),
      SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "combo-fade-out-scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "1"),
        SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale")
      ),
      "sfsiplusid_google" == SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").attr("id") ? SFSI("body").on("click", function () {
        SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()
      }) : (SFSI(this).css({
        "z-index": "0"
      }), SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide())
  }), SFSI("body").on("click", function () {
    SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()
  }), SFSI(".adminTooltip >a").on("hover", function () {
    SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "1"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").show()
  }), SFSI(".adminTooltip").on("mouseleave", function () {
    "none" != SFSI(".sfsi_plus_gpls_tool_bdr").css("display") && 0 != SFSI(".sfsi_plus_gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
      SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide()
    }) : (SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide())
  }), SFSI(".expand-area").on("click", function () {
    "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"), SFSI(this).text("Read more"))
  }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function () {
    var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 15 + "px";
    SFSI(".sfsi_plus_holders").each(function () {
      SFSI(this).css("height", s)
    });
    SFSI(".sfsi_plus_widget").css("min-height", "auto")
  }, 200)
});
function sfsi_plus_new_window_popup(event) {
  event.preventDefault();
  var target = SFSI(event.target);
  if (target.tagName !== "a") {
    target = target.parents('a');
  }
  var url = target.attr('href');
  if (undefined != url && null != url && url.length > 0) {
    var cond1 = (new RegExp('..\\..\\..\\..\\https\\twitter.com\\intent\\MS_2907.html')).test(url);
    if (!cond1 && "javascript:void(0);" != url) {
      var x = (jQuery(window).width() - 520) / 2;
      var y = (jQuery(window).height() - 570) / 2;
      window.open(url, 'window_popup', 'height=570,width=520,location=1,status=1,left=' + x + ',top=' + y + ',scrollbars=1');
    }
  }
}
var sfsiplus_initTop = new Array();
// image hover icon
SFSI(document).ready(function () {
  var api_link = document.querySelectorAll('link[rel="https://api.w.org/"]');
  if (api_link.length > 0) {
    var api_root = document.querySelectorAll('link[rel="https://api.w.org/"]')[0].getAttribute('href');
  }
  var is_archive = SFSI("body").hasClass("archive");
  var is_date = SFSI("body").hasClass("date");
  var is_author = SFSI("body").hasClass("author");
  if (undefined !== api_root) {
    SFSI.ajax({
      'url': api_root + 'usm-premium-icons\\v1\\hover_icon_setting\\index.html',
      'method': 'GET',
      'data': { 'url': window.location.href, 'is_archive': is_archive ? 'yes' : 'no', 'is_date': is_date ? 'yes' : 'no', 'is_author': is_author ? 'yes' : 'no' }
    }).then(function (sfsi_plus_result) {
      // settings=JSON.parse(result);
      // settings = result;
      if (undefined !== sfsi_plus_result.icon && sfsi_plus_result.icon.length > 0) {
        if (undefined === window.sfsi_premium) {
          window.sfsi_premium = {
            img_hover_setting: sfsi_plus_result
          }
        } else {
          window.sfsi_premium.img_hover_setting = sfsi_plus_result;
        }
        sfsi_register_img_hover_handler();
      }
    });
  } else {
    SFSI.ajax({
      'url': ajax_object.ajax_url,
      'type': 'POST',
      async: !0,
      dataType: "json",
      'data': { 'action': 'premium_hover_icon_settings', 'url': window.location.href, 'is_archive': is_archive ? 'yes' : 'no', 'is_date': is_date ? 'yes' : 'no', 'is_author': is_author ? 'yes' : 'no' }
    }).then(function (sfsi_plus_result) {
      // settings = result;
      if (undefined !== sfsi_plus_result.icon && sfsi_plus_result.icon.length > 0) {
        if (undefined === window.sfsi_premium) {
          window.sfsi_premium = {
            img_hover_setting: sfsi_plus_result
          }
        } else {
          window.sfsi_premium.img_hover_setting = sfsi_plus_result;
        }
        sfsi_register_img_hover_handler();
      }
    });
  }
  function sfsi_register_img_hover_handler() {
    var ismobile = navigator.userAgent.match(/ipad|iphone|ipod|android/i) != null;
    var device_check = false;
    try {
      var slength = "undefined" !== typeof window.sfsi_premium.img_hover_setting.show_on.length ?
        window.sfsi_premium.img_hover_setting.show_on.length : 0;
      if (slength > 0) {
        if (ismobile) {
          for (var i = 0; i < slength; i++) {
            if (window.sfsi_premium.img_hover_setting.show_on[i] === 'mobile') {
              device_check = true;
            }
          }
        } else {
          for (var i = 0; i < slength; i++) {
            if (window.sfsi_premium.img_hover_setting.show_on[i] === 'desktop') {
              device_check = true;
            }
          }
        }
      }
    }
    catch (e) {
    }
    SFSI(document).on('mouseover', 'img', function () {
      console.log(SFSI(this).width(),SFSI(this).height());
      if (SFSI(this).attr('nopin') !== 'nopin' && !SFSI(this).hasClass('sfsi_wicon')  && (SFSI(this).width() > parseInt(window.sfsi_premium.img_hover_setting.width) && SFSI(this).height() > parseInt(window.sfsi_premium.img_hover_setting.height)) && SFSI(this).parents('.sfsi_premium_image_hover_container').length == 0 && window.sfsi_premium && window.sfsi_premium.img_hover_setting && device_check) {
        var settings = window.sfsi_premium.img_hover_setting;
        var container = document.createElement('div');
        container.className = "sfsi_premium_image_hover_container";
        var parent= jQuery(this).parent();
        var icons_container = document.createElement('div');
        icons_container.className = "sfsi_premium_image_hover_icon_container";
        var margin_top = 5;
        var margin_h =5 ;
        var margin_v =5 ;
        if (window.sfsi_premium.img_hover_setting.icon_type === "small-rectangle") {
          margin_top = 2;
          margin_bottom = 2;
          margin_h = 2;
          margin_v = 0;
        }
        if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-right') {
          icons_container.style = "position:absolute;right:5px;bottom:5px";
          // console.log('bottom-right',window.sfsi_premium.img_hover_setting['placement']);
        } else if (window.sfsi_premium.img_hover_setting['placement'] === 'top-right') {
          icons_container.style = "position:absolute;right:5px;top:" + margin_top + "px;";
          // console.log('top-right',window.sfsi_premium.img_hover_setting['placement']);
        } else if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-left') {
          icons_container.style = "position:absolute;left:5px;bottom:5px;";
          // console.log('bottom-left',window.sfsi_premium.img_hover_setting['placement']);
        } else {
          icons_container.style = "position:absolute;left:5px;top:" + margin_top + 'px';
          // console.log('top-left',window.sfsi_premium.img_hover_setting['placement']);
        }
        var target_image_src = SFSI(this).attr('src');
        var target_image_title = SFSI(this).attr('title') || SFSI(this).attr('alt') || SFSI('meta[name="og:description"]').attr('value');
        var current_url = window.location.href;
        var image_width = SFSI(this).width();
        var image_height = SFSI(this).height();
        var image_with_figure = false;
        if (SFSI(this).parent('figure').length === 1) {
          image_with_figure = true;
        }
        settings.icon.forEach(function (icon_setting) {
          var icon = document.createElement('a');
          icon.href = icon_setting.share_url_template + encodeURIComponent(current_url) + '&media=' + encodeURIComponent(target_image_src) + '&description=' + encodeURIComponent(target_image_title);
          icon.target = "_blank"
          icon.className = "sfsi_open_window"
          icon.innerHTML = icon_setting.icon;
          icons_container.appendChild(icon);
        });
        container.appendChild(icons_container);
        if (SFSI(this).parent('a').length === 1) {
          var target = SFSI(this).parent().clone();
          target.addClass('sfsi_premium_hover_img');
          container.appendChild(target[0]);
          SFSI(this).parent().replaceWith(container);
        } else {
          var target = SFSI(this).clone();
          target.addClass('sfsi_premium_hover_img');
          container.appendChild(target[0]);
          SFSI(this).replaceWith(container);
        }
        container_2 = parent.find('.sfsi_premium_image_hover_icon_container');
        // console.log(container_2);
        var container_height = SFSI(container_2).height();
        var container_width = SFSI(container_2).width();
        if (container_height > image_height && image_with_figure === true) {
          image_with_figure = false;
        }
        // console.log('correction_dimm',container,image_with_figure,container_height,container_width,image_width,image_height);
        var icon_margin_top = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('top');
        var icon_margin_bottom = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('bottom');
        var icon_margin_right = SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('right');
        // console.log(icon_margin_top,icon_margin_right,image_with_figure);
        // if(icon_margin_top!=="0px" && image_with_figure==false){
        //     SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('margin-top',((container_height-image_height)+parseInt(icon_margin_top))+'px' )
        // }
        if (icon_margin_bottom !== "0px" && image_with_figure == false && window.sfsi_premium.img_hover_setting.icon_type !== 'square') {
          SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('bottom', (((container_height - image_height)/2) + margin_top) + 'px')
        }
        var adjustment_h=(container_width - image_width)/2;
        if(adjustment_h<0){adjustment_h=adjustment_h*-1;}
        // console.log(adjustment_h);
        // if (icon_margin_right !== "0px" && image_with_figure == false) {
        //   SFSI(container).find('.sfsi_premium_image_hover_icon_container').css('right', ((adjustment_h) + margin_top) + 'px')
        // }
        jQuery('.sfsi_premium_image_hover_container').css('display','block');
        console.log(jQuery('.sfsi_premium_image_hover_container').width(),jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width(),margin_h);
        console.log(jQuery('.sfsi_premium_image_hover_container').height(),jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height(),margin_v);
         if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-right') {
            jQuery('.sfsi_premium_image_hover_icon_container').css('right',(( (jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width())/2)+margin_h) +'px');
          jQuery('.sfsi_premium_image_hover_icon_container').css('bottom',(( (jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height())/2)+margin_v) +'px');
          // console.log('bottom-right',window.sfsi_premium.img_hover_setting['placement']);
        } else if (window.sfsi_premium.img_hover_setting['placement'] === 'top-right') {
          jQuery('.sfsi_premium_image_hover_icon_container').css('right',(( (jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width())/2)+margin_h) +'px');
          jQuery('.sfsi_premium_image_hover_icon_container').css('top',(( (jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height())/2)+margin_v) +'px');
          // console.log('top-right',window.sfsi_premium.img_hover_setting['placement']);
        } else if (window.sfsi_premium.img_hover_setting['placement'] === 'bottom-left') {
          jQuery('.sfsi_premium_image_hover_icon_container').css('left',(( (jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width())/2)+margin_h) +'px');
          jQuery('.sfsi_premium_image_hover_icon_container').css('bottom',(( (jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height())/2)+margin_v) +'px');
        } else {
          jQuery('.sfsi_premium_image_hover_icon_container').css('left',(( (jQuery('.sfsi_premium_image_hover_container').width() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').width())/2)+margin_h) +'px');
          jQuery('.sfsi_premium_image_hover_icon_container').css('top',(( (jQuery('.sfsi_premium_image_hover_container').height() - jQuery('.sfsi_premium_image_hover_container img.sfsi_premium_hover_img, .sfsi_premium_image_hover_container .sfsi_premium_hover_img img').height())/2)+margin_v) +'px');
        }
      }
      SFSI(document).on('click','a.sfsi_open_window',function(event){
        event.preventDefault();
        var url=SFSI(this).attr('href');
        window.open(url,"Share This Image", "width=800,height=350,status=0,toolbar=0,menubar=0,location=1,scrollbars=1");
      })
    });
    SFSI(document).on('mouseleave', '.sfsi_premium_image_hover_container', function () {
      var restore_img = SFSI(this).find('.sfsi_premium_hover_img');
      restore_img.removeClass('sfsi_premium_hover_img');
      SFSI(this).replaceWith(restore_img);
    });
  }
  SFSI(document).on('click', 'a.sfsi_open_window', function (event) {
    event.preventDefault();
    var url = SFSI(this).attr('href');
    window.open(url, "Share This Image", "width=800,height=350,status=0,toolbar=0,menubar=0,location=1,scrollbars=1");
  })
  
});
function force_initialize_fb_icons(){
  if(window.FB && window.FB.XFBML && window.FB.XFBML.parse){
    try{window.FB.XFBML.parse();}catch(e){
      window.fbAsyncInit = function() {  
        FB.init({
          status: true, cookie     : true,  xfbml      : true , version: 'v3.0'
        })
      }
      window.fbAsyncInit();
      window.FB.XFBML.parse();
    }
    console.log('Initialized the icons');
  }else{
    setTimeout(force_initialize_fb_icons,1000);
  }
}
function sfsi_premium_wechat_follow(url){
    if(jQuery('.sfsi_premium_wechat_scan').length==0){
        jQuery('body').append("");
    }else{
        jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show');
    }
}
function close_overlay(selector){
    if(typeof selector === "undefined"){
      selector = '.sfsi_premium_overlay';
    }
    jQuery(selector).removeClass('show').addClass('hide');
}
function sfsi_premium_wechat_share(url){
    if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
        sfsi_premium_wechat_share_mobile(url);
    }else{
      if(jQuery('.sfsi_premium_wechat_follow_overlay').length==0){
          jQuery('body').append("×\"Scan QR Code\" in WeChat and press ··· to share!
 ");
          new QRCode(jQuery('.sfsi_premium_wechat_follow_overlay .sfsi_premium_wechat_qr_display')[0], window.location.href)
          jQuery('.sfsi_premium_wechat_follow_overlay .sfsi_premium_wechat_qr_display img').attr('nopin','nopin')
      }else{
          jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show');
      }
    }
}
function sfsi_premium_wechat_share_mobile(url){
    if(jQuery('.sfsi_premium_wechat_follow_overlay').length==0){
        jQuery('body').append("
");
    }else{
        jQuery('.sfsi_premium_wechat_scan').removeClass('hide').addClass('show');
    }
}
function sfsi_copy_text_parent_input(event){
    var target = jQuery(event.target);
    console.log(target);
    input_target= target.parent().parent().parent().find('input');
    input_target.select();
    document.execCommand('copy');
}